package com.smedi.ismedi.authoritymanagement.core.domain.service;

import com.smedi.ismedi.authoritymanagement.core.domain.aggregatemodel.RoleBasic;

/**
 * @Author: xulinjun
 * @Date: 2021-8-10 14:38
 */
public interface RoleBasicDomainService {
    Boolean duplicateRoleName(String roleName, Long roleId);

    RoleBasic saveRoleBasic(RoleBasic data);

    void deleteRoleBasicByRoleId(Long roleId);

    RoleBasic getRoleBasicByRoleId(Long roleId);

    Boolean hasAdminRole(Long personId);
}
